package com.acxiom.foodreview.entity;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonInclude;

public class Result implements Serializable {

	private static final long serialVersionUID = -6628819089960920476L;
	private Integer code = 200;
	private String message = "success";
	@JsonInclude(JsonInclude.Include.NON_NULL)
	private Object result;

	public Result() {

	}

	public Result(Integer code, String message) {
		this.setCode(code);
		this.setMessage(message);
	}

	public Result(Object result) {
		this.setResult(result);
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getResult() {
		return result;
	}

	public void setResult(Object result) {
		this.result = result;
	}

}
